"""
用户 DB
"""

from bson import ObjectId

from db_base.mongodb_db.base import CollectionBase


class _User(CollectionBase):
    """
    用户

    >>> {
    ...     "_id" : ObjectId("64d4ab96cae30025abfd4e81"),
    ...     "name": "张三",
    ...     "nickname": "法外狂徒",
    ...     "code": "USER_240204031806448",
    ...     "gender": "male",
    ...     "mobile": "18312345678",
    ...     "email": "18312345678@qq.com",
    ...     "create_time" : "2023-08-10 17:19:18",
    ...     "update_time" : "2023-08-10 17:19:18",
    ...     "is_deleted" : 0
    ... }
    """

    collection_name: str = "user_user"


user: _User = _User()
""" 用户 """
